package com.item.service;

import com.item.dao.IndexImgMapper;
import com.item.dao.model.CartKey;
import com.item.dao.model.IndexImg;
import com.item.dao.model.IndexImgExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndexImgService {
    @Autowired
    private IndexImgMapper indexImgMapper;

    private static final Logger logger = Logger.getLogger(IndexImgService.class);

    public int countByExample(IndexImgExample example) {
        return this.indexImgMapper.countByExample(example);
    }

    public IndexImg selectByPrimaryKey(String id) {
        return this.indexImgMapper.selectByPrimaryKey(id);
    }

    public List<IndexImg> selectByExample(IndexImgExample example) {
        return this.indexImgMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.indexImgMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(IndexImg record) {
        return this.indexImgMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(IndexImg record) {
        return this.indexImgMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(IndexImgExample example) {
        return this.indexImgMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(IndexImg record, IndexImgExample example) {
        return this.indexImgMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(IndexImg record, IndexImgExample example) {
        return this.indexImgMapper.updateByExample(record, example);
    }

    public int insert(IndexImg record) {
        return this.indexImgMapper.insert(record);
    }

    public int insertSelective(IndexImg record) {
        return this.indexImgMapper.insertSelective(record);
    }
}